import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView'
import View2 from '../views/View2'
import View3 from '../views/View3'
import View4 from '../views/View4'
import privacy from '../views/privacy'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'home',
        component: HomeView,
        meta: {
            title: '首页'
        },
    },
    {
        path: '/information',
        name: 'information',
        component: View2,
        meta: {
            title: '医学资讯'
        },
    },
    {
        path: '/recruit',
        name: 'recruit',
        component: View3,
        meta: {
            title: '临床招募'
        },
    },
    {
        path: '/join',
        name: 'join',
        component: View4,
        meta: {
            title: '加入我们'
        },

    },
    {
        path: '/privacy',
        name: 'privacy',
        component: privacy,
        meta: {
            title: '隐私政策'
        },

    }
    
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
